home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
music
/
87
/
c
/
bars.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-12-19
|
715b
|
29 lines
/* BARS.C Dan Stubbs 12/5/86 */
/* This program loads the numbers 1000 through 31,000 into */
/* screen memory one at a time. Demonstrates speed of loading */
/* memory on the ST. Inspired by P. I. Nelson's Neoview */
#include <osbind.h>
int *screen;
main()
{
int i,number;
Cursconf(0,0); /* This makes cursor disappear */
screen = (int *) Physbase(); /* Finds address of screen */
for (number = 1000; number < 32000; number = number + 1000)
{
for(i=1; i < 16000; i=i+1)
{
*(screen+i)=number; /* Read number into screen memory*/
}
}
Bconin(2); /* This waits for a key press */
} /* The end */